package com.itheima.date8;

import java.time.DayOfWeek;
import java.time.LocalDateTime;
import java.time.Month;

/*
jdk8时间日期各种获取
 */
public class Demo03 {

    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        Month month = now.getMonth();
        System.out.println(month);

        DayOfWeek dayOfWeek = now.getDayOfWeek();
        System.out.println(dayOfWeek);


        int dayOfYear = now.getDayOfYear();
        System.out.println(dayOfYear);
    }
}
